/*
 * @Descripttion: 文件说明
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-07-29 10:40:41
 * @LastEditors: GW
 * @LastEditTime: 2022-01-28 14:29:58
 */
import { axios } from "../../utils/request";

const api = {
    PageList: "/crm/customer/page",   //客户管理、联系人管理、联系记录管理动态查询
    Save: "/crm/touch/save",
    disable: "/crm/touch/disable",  // 停用
    enable: "/crm/touch/enable",    // 启用
    detail: "/crm/touch/detail",     // 详情
};

/**
 * 动态条件查询
 * @param {*} data
 */
export function PageList (data) {
    return axios({
        url: api.PageList,
        method: "post",
        data: data
    });
}

/**
 * 保存
 */
export function Save (data) {
    return axios({
        url: api.Save,
        method: "post",
        isLoading: true,
        data: data
    });
}


/**
 * 启用
 */
export function enable (data) {
    return axios({
        url: api.enable,
        method: "get",
        params: data
    });
}

/**
 * 停用
 */
export function disable (data) {
    return axios({
        url: api.disable,
        method: "get",
        params: data
    });
}


/**
 * 详情
 */
export function detail (data) {
    return axios({
        url: api.detail,
        method: "get",
        params: data
    });
}